<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import {updateTrade} from "@/api/carbon-manage/trade";

export default {
  name: 'App',
  created() {
    this.refreshTrade();
  },
  methods: {
    refreshTrade() {
      try {
        setInterval(function () {
          updateTrade().then(res => {
            console.log(res)
          })
        }, 1000 * 10);
      } catch (e) {

      }
    },
  }
}
</script>

<style>
/* 整个滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* 滚动条上的滚动滑块 */
::-webkit-scrollbar-thumb {
  background-color: #477739;
  /* 关键代码 */
  background-image: -webkit-linear-gradient(45deg,
  rgba(255, 255, 255, 0.4) 25%,
  transparent 25%,
  transparent 50%,
  rgba(255, 255, 255, 0.4) 50%,
  rgba(255, 255, 255, 0.4) 75%,
  transparent 75%,
  transparent);
  border-radius: 32px;
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
  background-color: #c2e0c9;
  border-radius: 32px;
}
</style>
